import request from '@/utils/request'


//合同收费标准#权限标识：zhcloud:sfbz:list
/**
 * 
 * @param {'khmc':'','all':''} data 
 * @param {*} params 
 * @returns 
 */
export function getContractFeeStandard(data, params) {
    return request({
        url: '/storage/sfbz/charges',
        method: 'post',
        data: data,
        params:params
    })
}

//合同收费标准-详细-添加新合同-添加合同#权限标识：zhcloud:sfbz:add
/**
 * 
 * @param {"csbh": "","edate": "","itbz": "","khid": "","sdate": ""} data 
 * @returns 
 */
export function addContractFeeStandard(data) {
    return request({
        url: '/storage/sfbz/addContract',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细-合同详情->添加合同项目-添加合同项目#权限标识：zhcloud:sfbz:add
 * @param {"csbh": "","csbz": "","csdj01": "","csdj02": "","csdj02t": "","csdj03": "","csdj03t": "","csdj04": "","csuid": "","cx": "","edate": "","khmcid": "","sdate": "","spa": "","spc": ""} data 
 * @returns 
 */
export function addContractProgram(data) {
    return request({
        url: '/storage/sfbz/addDt',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细-合同详情-修改-修改#权限标识：zhcloud:sfbz:modify
 * @param {
	"csbh": "",
	"csbz": "",
	"csdj01": "",
	"csdj02": "",
	"csdj02t": "",
	"csdj03": "",
	"csdj03t": "",
	"csdj04": "",
	"csuid": "",
	"cx": "",
	"edate": "",
	"khmcid": "",
	"sdate": "",
	"spa": "",
	"spc": ""
} data  
 * @returns 
 */
export function setContractProgramEdit(data) {
    return request({
        url: '/storage/sfbz/changeDt',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细-合同详情-修改当前时间段-修改#权限标识：zhcloud:sfbz:modify
 * @param {'csuid':'','cx':'','sdate':'','edate':''} data 
 * @param {*} params 
 * @returns 
 */
export function contractCurrentDateModify(data) {
    return request({
        url: '/storage/sfbz/changeTheTime',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细-合同详情#权限标识：zhcloud:sfbz:detail
 * @param {'khmcid':'','csuid':'','cx':''} data 
 * @param {*} params 
 * @returns 
 */
export function getContractDetailList(data, params) {
    return request({
        url: '/storage/sfbz/contractDetails',
        method: 'post',
        data: data,
        params:params
    })
}

/**
 * 合同收费标准-详细-合同版次#权限标识：zhcloud:sfbz:list
 * @param {'csuid':''} data 
 * @returns 
 */
export function getContractVersionDetail(data,params) {
    return request({
        url: '/storage/sfbz/contractVersion',
        method: 'post',
        data: data,
        params:params
    })
}

/**
 * 合同收费标准-详细-合同详情-当前版次#权限标识：zhcloud:sfbz:list
 * @param {'csuid':''} data 
 * @returns 
 */
export function getContractCurrentVersion(data) {
    return request({
        url: '/storage/sfbz/currentVersion',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细-合同详情->添加合同项目-添加合同项目#权限标识：zhcloud:sfbz:del
 * @param {
	"csbh": "",
	"csbz": "",
	"csdj01": "",
	"csdj02": "",
	"csdj02t": "",
	"csdj03": "",
	"csdj03t": "",
	"csdj04": "",
	"csuid": "",
	"cx": "",
	"edate": "",
	"khmcid": "",
	"sdate": "",
	"spa": "",
	"spc": ""
} data 
 * @returns 
 */
 export function contractDetailDel(data) {
    return request({
        url: '/storage/sfbz/delDt',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细-合同版次->废弃版次#权限标识：zhcloud:sfbz:del
 * @param {'fqid':''} data 
 * @returns 
 */
export function contractVersionDiscard(data) {
    return request({
        url: '/storage/sfbz/delVersion',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细#权限标识：zhcloud:sfbz:detail
 * @param {khid} data 
 * @returns 
 */
export function getContractDetail(data,params) {
    return request({
        url: `/storage/sfbz/detail/${data.khid}`,
        method: 'post',
        data: data,
        params:params
    })
}

/**
 * 合同收费标准-详细#权限标识：zhcloud:sfbz:detail
 * @param {
	"count1": "",
	"csuid": "",
	"cx0": 0,
	"cxx": "",
	"e1": "",
	"e2": "",
	"edate": "",
	"s1": "",
	"s2": "",
	"sdate": ""
} data 
 * @returns 
 */
 export function contractNewVersionCreate(data) {
    return request({
        url: '/storage/sfbz/newVersion',
        method: 'post',
        data: data
    })
}

/**
 * 合同收费标准-详细-合同详情-修改当前时间段-不可选择时间段#权限标识：zhcloud:sfbz:list
 * @param 	
{'csuid':'','cx':''} data 
 * @returns 
 */
export function getContractNotOptionalDate(data) {
    return request({
        url: '/storage/sfbz/notOptional',
        method: 'post',
        data: data
    })
}

/**
 * 
合同收费标准-详细-添加新版次#权限标识：zhcloud:sfbz:list
 * @param {'csuid':'','cx':'','s2':'','s1':''} data 
 * @returns 
 */
export function getContractNewVersionAddDetail(data) {
    return request({
        url: '/storage/sfbz/toNewVersion',
        method: 'post',
        data: data
    })
}